﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects.DataClasses;

using FRL.DebtChased.Extensions;

namespace FRL.DebtChased.Repository
{

	/// <summary>
	/// Extensions to the SystemConfig model
	/// </summary>
	public partial class SystemConfig
	{

		/////////////////////////////////////////////////////////////
		// Static Operations

		public static int? GetClientAlertEmailCommBodyId( DebtChasedEntities ent )
		{

			// Load data from repository
			SystemConfig sc = ent.SystemConfigs.First();
			return sc.ClientAlertEmailCommBodyId;

		}

		public static int GetClientAlertSendTimeMinutes( DebtChasedEntities ent )
		{

			// Load from repository
			SystemConfig sc = ent.SystemConfigs.First();
			return sc.ClientAlertSendTimeMinutes;

		}

	}

}
